getLocation

abstract fun getLocation(): Location

Gets the geographical location information associated with this device.

This might include coordinates (latitude/longitude), address, or a user-defined location tag.

Return

A Location object representing the device's location. May return null if no location information is set for this device.

See also

// Ensure Location interface/class is also well-documented